//
//  AllCarTableViewCell.m
//  19-homework-homeOfCar
//
//  Created by 王道林 on 16/8/9.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "AllCarTableViewCell.h"
#import "EachCarModel.h"
#import "UIImageView+WebCache.h"
@implementation AllCarTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setEachModel:(EachCarModel *)eachModel
{
    _eachModel = eachModel;
    _lableName.text = _eachModel.name;
   NSURL *url = [NSURL URLWithString:_eachModel.imgurl];
    [_iamgeView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"3"]];
    
}




- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
